/**
 * EconomyBoard Class stores and manages info about prices on different markets,
 * also keeps track of dice difference.
 * 
 * @author michal
 * 
 */
public class EconomyBoard {
  final static int gasIncrement = 2;
  final static int oilIncrement = 1;
  final static int maxGasPrice  = 60;
  final static int minGasPrice  = 2;
  final static int maxOilPrice  = 30;
  final static int minOilPrice  = 1;
  int              consumerMarket;
  int              buyGasDomestic;
  int              sellGasDomestic;
  int              buyGasForeign;
  int              sellGasForeign;
  int              buyOilDomestic;
  int              sellOilDomestic;
  int              buyOilForeign;
  int              sellOilForeign;
  int              diceDifferenceTrack;

  /**
   * Default constructor for object of class EconomyBoard, the object is
   * initialized in beginning of the game state.
   * 
   */
  public EconomyBoard() {
    this.consumerMarket = 26;
    this.buyGasDomestic = 16;
    this.sellGasDomestic = 14;
    this.buyGasForeign = 16;
    this.sellGasForeign = 14;
    this.buyOilDomestic = 6;
    this.sellOilDomestic = 5;
    this.buyOilForeign = 6;
    this.sellOilForeign = 5;
    this.diceDifferenceTrack = 0;
  }

  /**
   * @return the consumerMarket
   */
  public int getConsumerMarket() {
    return consumerMarket;
  }

  /**
   * @param consumerMarket
   *          the consumerMarket to set
   */
  public void setConsumerMarket(int consumerMarket) {
    this.consumerMarket = consumerMarket;
  }

  /**
   * @return the gasBuyDomestic
   */
  public int getGasBuyDomestic() {
    return buyGasDomestic;
  }

  /**
   * @param gasBuyDomestic
   *          the gasBuyDomestic to set
   */
  public void setGasBuyDomestic(int gasBuyDomestic) {
    this.buyGasDomestic = gasBuyDomestic;
  }

  /**
   * @return the gasBuyForeign
   */
  public int getGasBuyForeign() {
    return buyGasForeign;
  }

  /**
   * @param gasBuyForeign
   *          the gasBuyForeign to set
   */
  public void setGasBuyForeign(int gasBuyForeign) {
    this.buyGasForeign = gasBuyForeign;
  }

  /**
   * @return the oilBuyDomestic
   */
  public int getOilBuyDomestic() {
    return buyOilDomestic;
  }

  /**
   * @param oilBuyDomestic
   *          the oilBuyDomestic to set
   */
  public void setOilBuyDomestic(int oilBuyDomestic) {
    this.buyOilDomestic = oilBuyDomestic;
  }

  /**
   * @return the oilBuyForeign
   */
  public int getOilBuyForeign() {
    return buyOilForeign;
  }

  /**
   * @param oilBuyForeign
   *          the oilBuyForeign to set
   */
  public void setOilBuyForeign(int oilBuyForeign) {
    this.buyOilForeign = oilBuyForeign;
  }

  /**
   * @return the diceDifferenceTrack
   */
  public int getDiceDifferenceTrack() {
    return diceDifferenceTrack;
  }

  /**
   * @param diceDifferenceTrack
   *          the diceDifferenceTrack to set
   */
  public void setDiceDifferenceTrack(int diceDifferenceTrack) {
    this.diceDifferenceTrack = diceDifferenceTrack;
  }

}
